package com.lzy.pattern.prototype;

import lombok.Data;

/**
 * @ClassName: Award
 * @Description: 奖状类
 * @Author: LiuZy
 * @Date: 2022/4/17 21:07
 * @Version: 1.0
 */
@Data
public class Award implements Cloneable {

    private String name;

    public void show(){
        System.out.println(this.name + "同学，在本学年荣获三好学生称号，以兹鼓励！");
    }

    @Override
    public Award clone() throws CloneNotSupportedException {
        return (Award) super.clone();
    }
}